setfenv(1, require'winapi.oo')
require'winapi.oo.control'
require'winapi.listbox'

ListBox = class(Object)

function ListBox:__init(info)
	self.window = CreateListBox(update({}, info, {
							parent = info.parent and info.parent.window
						}))
	self.parent = info.parent
	if self.parent then
		self.parent.setnotify(self.window, function(...) return self:__notify(...) end)
	end
end
